﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using dwindleUrl.ViewModels;
using Microsoft.Practices.Prism.Commands;

namespace dwindleUrl.DesignTime
{
    public class DetailsPageViewModel : ViewModels.IDetailsPageViewModel
    {

        public Models.Item Item { get; set; }
        public DelegateCommand GoBackCommand { get; set; }

        public DetailsPageViewModel()
        {
            var repository = new Repositories.ItemRepository();
            this.Item = repository.AllItems().First();
        }

        
    }
}
